<table class="layui-table text-center" lay-size="sm">
    <thead>
        <tr>
            <th><input type="checkbox" class="checked-all" target="pick-id"></th>
            <th>拣货单</th>
            <th>拣货总数</th>
            <th>是否打印</th>
            <th>打印时间</th>
            <th>是否完成</th>
            <th>完成时间</th>
            <th>备注</th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
        {volist name="list" id="item"}
            <tr>
                <td><input type="checkbox" class="pick-id" name="pick_id[]" value="{$item.pick_id}"></td>
                <td class="text-left copy-text {$item.pick_sn}" item="{$item.is_end}">{$item.pick_sn}</td>
                <td>{$item.total_qty}</td>
                <td>
                    <span class="{$item.is_print?'text-yellow':'text-muted'}"><i class="fa fa-circle"></i>{$item.is_print?'是':'否'}</span>
                </td>
                <td>{$item.print_time}</td>
                <td>
                    <span class="{$item.is_end?'text-yellow':'text-muted'}"><i class="fa fa-circle"></i>{$item.is_end?'是':'否'}</span>
                </td>
                <td>{$item.end_time}</td>
                <td class="text-left">{$item.remark}</td>
                <td class="text-left">
                    <a href="{:url('look', ['pick_id'=>$item['pick_id']])}" class="layui-btn layui-btn-xs ajax-form" width-form="80%" height-form="80%" title="查看拣货单">查看拣货单</a>
                    {if $item.is_end != 1}
                    <button item="{$item.pick_id}" type="button" class="layui-btn layui-btn-xs layui-bg-orange print-pick">打印拣货单</button>
                    <a href="{:url('info', ['pick_id'=>$item['pick_id']])}" class="layui-btn layui-btn-xs layui-btn-normal">打印面单</a>
                    {/if}
                    <a href="{:url('download', ['pick_id'=>$item['pick_id']])}" class="layui-btn layui-btn-xs layui-bg-black download-box">下载拣货单</a>
                </td>
            </tr>
        {/volist}
        {empty name="list"}
        <tr>
            <td colspan="9">没有数据</td>
        </tr>
        {/empty}
    </tbody>
</table>
<div class="page">
    {$page|raw}
</div>